package ccm.itesm.mx.servicios;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

public class Menu implements Serializable {
	
	private static final long serialVersionUID = 7526471155622776147L;
	
	private String nombreP;
	private String desc;
	private String precio;
	
	public Menu(String nombreP, String desc, String precio){
		this.nombreP = nombreP;
		this.desc = desc;
		this.precio = precio;
	}
	
	public String getNombre(){
		return nombreP;
	}
	
	public String getDesc(){
		return desc;
	}
	
	public String getPrecio(){
		return precio;
	}
	
	public void setNombre(String in){
		nombreP = in;
	}
	
	public void setDesc(String in){
		desc = in;
	}
	
	public void setPrecio(String in){
		precio = in;
	}
	
	public String toString(){
		return nombreP;
	}
	
	private void readObject(ObjectInputStream aInputStream) throws ClassNotFoundException, IOException {
		//always perform the default de-serialization first
		aInputStream.defaultReadObject();
	}

	private void writeObject(ObjectOutputStream aOutputStream) throws IOException {
		//perform the default serialization for all non-transient, non-static fields
		aOutputStream.defaultWriteObject();
	}

}
